<div class="copies form">
    <div class="actions specific">
	<ul>

		<li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $this->Form->value('Copy.id')), null, sprintf(__('Esta seguro que desea eliminar # %s?', true), date('d/m/Y', strtotime($this->Form->value('Copy.date'))))); ?></li>
	</ul>
    </div>
<?php echo $this->Form->create('Copy');?>
	<fieldset>
		<legend><?php __('Editar Copia'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('date', array('label' => 'Fecha', 'type' => 'text', 'readonly' => 'readonly'));
		echo $this->Form->input('detail', array('label' => 'Detalle', 'type' => 'textarea'));
		echo $this->Form->input('price', array('label' => 'Precio'));
		echo $this->Form->input('key_id', array('type' => 'hidden'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>
<!--
<script type="text/javascript">
    (function($){
        // Date picker
        $("#CopyDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>-->